package com.empire.module.sporttery.dal.mysql.football500rangzhiim;

import java.util.*;

import com.empire.framework.common.pojo.PageResult;
import com.empire.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.empire.framework.mybatis.core.mapper.BaseMapperX;
import com.empire.module.sporttery.dal.dataobject.football500rangzhiim.Football500RangzhiImDO;
import org.apache.ibatis.annotations.Mapper;
import com.empire.module.sporttery.controller.admin.football500rangzhiim.vo.*;

/**
 * 让球实时 Mapper
 *
 * @author 无敌仙人
 */
@Mapper
public interface Football500RangzhiImMapper extends BaseMapperX<Football500RangzhiImDO> {

    default PageResult<Football500RangzhiImDO> selectPage(Football500RangzhiImPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<Football500RangzhiImDO>()
                .eqIfPresent(Football500RangzhiImDO::getMatchId, reqVO.getMatchId())
                .eqIfPresent(Football500RangzhiImDO::getYpId, reqVO.getYpId())
                .eqIfPresent(Football500RangzhiImDO::getHandicapLine, reqVO.getHandicapLine())
                .likeIfPresent(Football500RangzhiImDO::getCompanyName, reqVO.getCompanyName())
                .eqIfPresent(Football500RangzhiImDO::getImHomeWater, reqVO.getImHomeWater())
                .eqIfPresent(Football500RangzhiImDO::getImHomeRate, reqVO.getImHomeRate())
                .eqIfPresent(Football500RangzhiImDO::getImHomeKaili, reqVO.getImHomeKaili())
                .eqIfPresent(Football500RangzhiImDO::getImDrawWater, reqVO.getImDrawWater())
                .eqIfPresent(Football500RangzhiImDO::getImDrawRate, reqVO.getImDrawRate())
                .eqIfPresent(Football500RangzhiImDO::getImDrawKaili, reqVO.getImDrawKaili())
                .eqIfPresent(Football500RangzhiImDO::getImAwayWater, reqVO.getImAwayWater())
                .eqIfPresent(Football500RangzhiImDO::getImAwayRate, reqVO.getImAwayRate())
                .eqIfPresent(Football500RangzhiImDO::getImAwayKaili, reqVO.getImAwayKaili())
                .eqIfPresent(Football500RangzhiImDO::getImBackRate, reqVO.getImBackRate())
                .eqIfPresent(Football500RangzhiImDO::getInitHomeWater, reqVO.getInitHomeWater())
                .eqIfPresent(Football500RangzhiImDO::getInitHomeRate, reqVO.getInitHomeRate())
                .eqIfPresent(Football500RangzhiImDO::getInitHomeKaili, reqVO.getInitHomeKaili())
                .eqIfPresent(Football500RangzhiImDO::getInitDrawWater, reqVO.getInitDrawWater())
                .eqIfPresent(Football500RangzhiImDO::getInitDrawRate, reqVO.getInitDrawRate())
                .eqIfPresent(Football500RangzhiImDO::getInitDrawKaili, reqVO.getInitDrawKaili())
                .eqIfPresent(Football500RangzhiImDO::getInitAwayWater, reqVO.getInitAwayWater())
                .eqIfPresent(Football500RangzhiImDO::getIsPatch, reqVO.getIsPatch())
                .eqIfPresent(Football500RangzhiImDO::getInitAwayRate, reqVO.getInitAwayRate())
                .eqIfPresent(Football500RangzhiImDO::getInitAwayKaili, reqVO.getInitAwayKaili())
                .eqIfPresent(Football500RangzhiImDO::getInitBackRate, reqVO.getInitBackRate())
                .betweenIfPresent(Football500RangzhiImDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(Football500RangzhiImDO::getId));
    }

}